<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.qm.hibernate.Tpost"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>好友空间-帖子</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../Css/styles.css">

</head>

<body>
	<%
  		List<Tpost> posts = (List<Tpost>)session.getAttribute("hisPosts");
   	%>


	<%@ include file="../Public/hishomeHeader.jsp"%>
	<div id="container">
	<%@ include file = "../Public/hisLeft.jsp" %>
		<div id="middle">
			<h3>他的帖子</h3>
			<ul>
				<%
 		for (int i = 0; i < posts.size(); i++) {
				%>

				<li><a href="postAction?id=<%=posts.get(i).getId()%>">他的帖子《<%=posts.get(i).getTitle()%>》有了新评论
				</a></li>
				<%
					}
				%>
			</ul>
		</div>
	</div>
	<div id="footer"></div>
</body>
</html>
